package com.ktc.utils;

import com.ktc.utils.snowkey.SnowflakeIdWorker;


public class IdUtil {


    /**
     * 获取全局唯一ID
     */
    public static String nextId() {
        SnowflakeIdWorker snowflakeIdWorker = SnowflakeIdWorker.getInstance();
        return String.valueOf(snowflakeIdWorker.nextId());
    }


}
